<?php
$id = $_GET['id'];
include("conn.php");
	     $pdo = getConn();
		 $sql = "select * from articles where id=:id";
	     $stmt = $pdo ->prepare($sql);
	     $stmt->bindParam(":id",$id);
		 $stmt->execute();
		 $articles = $stmt->fetch();

?>
<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title></title>
</head>
<body>
	<h1><?=$articles['title']?></h1>
	<div>
		<?=$articles['content']?>
	</div>
</body>
</html>